package com.allwees.bs.module.ums.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.allwees.bs.module.ums.entity.CustomerCash;
import com.allwees.core.dao.mybatis.dao.BaseDao;
import me.zhengjie.utils.StringUtils;

public interface CustomerCashDao extends BaseDao<CustomerCash> {

    default CustomerCash findByUserUuid(String userUuid) {
        if (StringUtils.isBlank(userUuid)) {
            return null;
        }
        QueryWrapper<CustomerCash> wrapper = new QueryWrapper<>();
        wrapper.in("user_uuid", userUuid);
        return selectOne(wrapper);
    }
}
